package com.hilin.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hilin.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author qhl
 * @since 2021-11-24
 */
@Data
@ApiModel("群组表")
@TableName("account_im_group_info")
public class AccountImGroupInfoPo extends BaseEntity<AccountImGroupInfoPo> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("数据ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @ApiModelProperty("所属平台id")
    private String appid;
    @ApiModelProperty("群组ID")
    @TableField("group_id")
    private String groupId;
    @ApiModelProperty("群组名称")
    @TableField("group_name")
    private String groupName;
    @ApiModelProperty("群组有效期;如果超过这个时间，则群组会被禁用")
    @TableField("valid_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date validTime;
    @ApiModelProperty("群组状态;1启用 2禁用")
    @TableField("group_status")
    private Integer groupStatus;
    @ApiModelProperty("创建者;群组所有者，同account_info的id字段")
    private Long creator;
    @ApiModelProperty("创建时间")
    @TableField("creator_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date creatorTime;
    @ApiModelProperty("更新时间")
    @TableField("updator_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatorTime;
}